package com.zksk.admin.api.domain.portal.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ApiModel(value = "ManualVo", description = "操作指南对象")
public class ManualVo implements Serializable {

    @ApiModelProperty("主键id")
    @NotNull(message = "ID不能为空!",groups = Update.class)
    private Long id;

    @ApiModelProperty("标题名称")
    @NotNull(message = "标题名称不能为空!",groups = Insert.class)
    private String titleName;

    @ApiModelProperty("文件名称")
    @NotNull(message = "文件名称不能为空!",groups = Insert.class)
    private String fileName;

    @ApiModelProperty("操作手册类型")
    @NotNull(message = "操作手册类型不能为空!",groups = Insert.class)
    private String type;

    @ApiModelProperty("操作手册状态（备用字段）")
    private Integer status;

    @ApiModelProperty("内容")
    private String desc;

    @ApiModelProperty("附件地址")
    @NotNull(message = "附件地址不能为空!",groups = Insert.class)
    private String file;

    @ApiModelProperty("信息时间")
    private LocalDateTime infoTime;

    @ApiModelProperty("查看次数")
    private Integer lookNum;

}
